<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar showCompany  companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP"
                         :datas="{formData: form,panel: panel}" >
            </epl-top-bar>
            <el-card class="ep-card">
            <epl-userMessage dataType="company" idCount="13" :panel="panel" isEdit_1=''></epl-userMessage>
            </el-card>
            <el-collapse v-model="activeNames" >
             <el-form :model="form" :rules="rules"  ref="form">
                <el-collapse-item  title="单位基本信息" name="1">
                    <el-card class="ep-card">
                            
                            <el-row>
                                <ep-input colspan="8" label="组织机构代码" name="aab003" :property="form.aab003"
				                        p="D" isChange
				                        :datas="{formData: form,tableData1:tableData1,tableData1Id:tableData1Id}"></ep-input>
                                <ep-select colspan="8" label="参保状态" name="aab051" :property="form.aab051"
                                        p="D"  codetype="AAB051"
                                        :datas="{formData:form}" ></ep-select>
                                <ep-date colspan="8" label="参保日期" name="aab050" :property="form.aab050" 
                                        p="D" :datas="{formData:form}"></ep-date>
                            </el-row>
                    </el-card>
                </el-collapse-item>
               
                <el-collapse-item title="单位银行账号信息" name="2">
                    <el-card class="ep-card">
                            <el-row>
                                <ep-select colspan="8" label="发行银行" name="aaz441" :property="form.aaz441"
                                           p="D" codetype="AAZ441"
                                           :datas="{formData:form}"></ep-select>
                                <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行户名" name="aae009" :property="form.aae009"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>

                            </el-row>   

                            <el-row>
                                <epl-search-bank colspan="8" label="开户行行号" name="bae040" formName="formData" :property="form.bae040" 
                                                 p="D" :datas="{formData: form}" codetype="BAE040" bankName="bae040" show></epl-search-bank>
                                <ep-input colspan="16" label="开户银行名称" name="bac049" :property="form.bac049"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                       
                    </el-card>
                </el-collapse-item>

                <el-collapse-item title="基本养老保险信息" name="3">
                    <el-card class="ep-card">
                        <el-row>
                            <ep-input colspan="8" label="养老保险应缴（单位）" name="aae020" :property="form.aae020"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>
                            <ep-input colspan="8" label="养老保险应缴（个人）" name="aae022" :property="form.aae022"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>
                            <ep-input colspan="8" label="养老保险应缴总额" name="bac046" :property="form.bac046"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>
                        </el-row>
                        <el-row>
                            <ep-input colspan="16" label="清算差额" name="bab044" :property="form.bab044"
                                          p="D"
                                          :datas="{formData:form}"></ep-input>
                        </el-row>
                        <el-row>
                            <ep-select colspan="8" label="清算方式" name="bab039" :property="form.bab039"
                                           p="D" codetype="BAB039"
                                           :datas="{formData:form}"></ep-select>
                            <ep-select colspan="8" label="征收方式" name="aab033" :property="form.aab033"
                                           p="D" codetype="AAB033"
                                           :datas="{formData:form}"></ep-select>
                            <ep-select colspan="8" label="支付方式" name="aae145" :property="form.aae145"
                                           p="D" codetype="aae145"
                                           :datas="{formData:form}"></ep-select>
                        </el-row>
                        <el-row>
                            <el-span style="color : #FF4949">注：清算差额=单位应缴+个人应缴-基金应支付退休人员养老金，当差额为正时作为补缴额，
                            当差额为负时作为退回额。
                            </el-span>
                        </el-row>
                    </el-card>
                </el-collapse-item>

                <el-collapse-item title="职业年金信息" name="4">
                    <el-card class="ep-card">
                        <el-row>
                            <ep-input colspan="16" label="职业年金应缴金额" name="bab042" :property="form.bab042"
                                                p="D"
                                                :datas="{formData:form}"></ep-input>
                        </el-row>
                        <el-row>
                                <el-span style="color : #FF4949">注：职业年金统一通过税务征收。</el-span>
                        </el-row>
                    </el-card>
                    </el-collapse-item>
                    <el-card>
                        <el-row type="flex" justify="center">
                            <ep-saveButton id="" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                        :datas="{panel:panel,formData: form,
                                            tableData1:tableData1,tableData1Id:tableData1Id}" name="保存"></ep-saveButton>

                        </el-row>
                    </el-card>
				 </el-form>
            </el-collapse> 

        </el-main>
    </el-main>
</template>

<script src="../js/CpClearingRegOutJS.js"></script>